package day0506;


import java.util.Random;//1.导入java.util中的Random文件
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        //2.定义变量s并赋值
        Random  s=new Random();
        //3.用变量s调用nextInt()函数输入一个int数据存入到变量number1中。
        int  number1=s.nextInt(50);
        int  number2=s.nextInt(50);
        System.out.println(number1+  "+"  +number2 +  "=");
        System.out.println("请输入答案：");
        Scanner  sc=new Scanner(System.in);
        int  answer=sc.nextInt();
        System.out.println( answer  ==  (number1+number2));
    }
}
